'''
Created on Aug 15, 2011

@author: Andrzej
'''


def dbg(obj, level, msg):
    if obj.debug >= level:
        print obj.__unicode__()+ ": " + "  "*level + msg
    else:
        pass